{{- if .context.IsTranslated -}}
{{ $currentLan := .context.Language }}
{{ $pageURL := .context.RelPermalink}}
<ul class="list ma0 pa0 dn dib-l">
{{ range .allTranslations }}
  <li class="f5 dib mr4" role="menuitem">
    {{ $pageURL = strings.TrimPrefix "/" $pageURL }}
    {{ $pageURL = strings.TrimPrefix $currentLan $pageURL }}
    <a href="{{ .Permalink }}{{ $pageURL }}" class="dim gray">{{ .Language.LanguageName }}</a>
  </li>
{{ end }}
</ul>
{{- end -}}
